package OBS;

/**
 *
 * @author Daniel Koch
 */
public class BatchReportInterval {
    private int id;
    private String description;

    /**
     *
     * @param id
     * @param description
     */
    public BatchReportInterval(int id, String description) {
        this.id = id;
        this.description = description;
    }

    /**
     *
     * @return
     */
    public String toString() {
        return this.description;
    }

    /**
     *
     * @return
     */
    public String getDescription() {
        return description;
    }

    /**
     *
     * @return
     */
    public int getID() {
        return id;
    }

    /**
     * 
     * @param o
     * @return
     */
    public boolean equals(Object o) {
        if (!(o instanceof BatchReportInterval)) {
            return false;
        }
        BatchReportInterval batchReportInterval = (BatchReportInterval)o;
        return (this.description.equals(batchReportInterval.getDescription()) && (this.id == batchReportInterval.getID()));
    }
}
